package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "分页查询操作日志 DTO")
public class ActivityLogPageDTO extends CommonPage {

    @Schema(description = "操作人用户ID，可选", example = "1")
    private Long userId;

    @Schema(description = "操作类型模糊搜索，可选", example = "create")
    private String action;

    @Schema(description = "开始日期，可选，格式 yyyy-MM-dd")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private LocalDate startDate;

    @Schema(description = "结束日期，可选，格式 yyyy-MM-dd")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private LocalDate endDate;
}
